package com.nowcoder.dao;

import com.nowcoder.entity.LoginTicket;
import org.apache.ibatis.annotations.*;

/**
 * @author by lvshh
 * @version 1.0
 * @date 2020/4/24 18:53
 */
@Mapper
@Deprecated
public interface LoginTicketMapper {

//    @Insert({
//            "insert into login_ticket (user_id,ticket,status,expired) ",
//            "values(#{userId},#{ticket},#{status},#{expired}) "
//    })
//    @Options(useGeneratedKeys = true,keyProperty = "id")
    int insertLoginTicket(LoginTicket loginTicket);


    LoginTicket selectByTicket(@Param("ticket") String ticket);


    int updateStatus(@Param("ticket") String ticket,@Param("status") int status);
}
